package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.param.BaseParam;
import com.cskaoyan.service.wx.WxBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenai
 * @description TODO
 * @date 2022-06-08 17:08
 */
@RestController
@RequestMapping("wx/brand")
public class WxBrandController {
    @Autowired
    WxBrandService wxBrandService;

    @RequestMapping("list")
    public BaseRespVo list(BaseParam baseParam) {
        return BaseRespVo.ok(wxBrandService.list(baseParam));
    }

    @RequestMapping("detail")
    public BaseRespVo detail(Integer id) {
        return BaseRespVo.ok(wxBrandService.detail(id));
    }
}
